package com.future.message.Mapper;

import com.future.message.pojo.Data;

import java.util.List;

public interface DataMapper {
    //添加填报数据
    Integer addData(Data data);
    //修改填报数据
    Integer updateData(Integer dataId,String content,String completeTime);
    //删除填报数据
    Integer deleteData(Integer dataId);
    //查找填报数据-id
    Data findDataById(Integer dataId);
    //查找填报数据-userId
    List<Data> findDataByUserId(Integer userId);
    //根据userId和indexId判断是否存在写过的数据
    List<Data> findDataByUserIdAndIndexId(Integer userId,Integer indexId);
    //根据UserId删除数据
    Integer deleteDataByUserId(Integer userId);
    //根据填报关联遍历数据
    Data findDataByRelevantReportId(Integer relevantReportId);
    //修改src
    Integer updateSrc(Integer dataId,String src);
    //根据用户id和填报关联id删除数据
    Integer deleteDataByUserIdAndReportId(Integer userId,Integer relevantReportId);

}
